<?php 
	include_once '../Author.class.php';
?>
<html>
<head>
</head>
<body>
<h1>Test Object Metier</h1>
<?php 
	try {
		$authors = array();

		$author1 = new Author();

		$album = new Album();
		$album->setId(12);
		$album->setName("name of a album");
		$album->setCoverage("coverage");
		$album->setDescription("description");
		
		$author1->addAlbum($album);
		
		echo $author1;

		//array_push($authors,$author1);
		//array_push($authors,$author2);
	} catch (Exception $e) {
    	echo 'Caught exception: ',  $e->getMessage(), "\n";
	}
?>
After
</body>
</html>